package com.hqyj.pojo;

import java.io.Serializable;
import java.util.List;

/**
 * (Orders)实体类
 *
 * @author makejava
 * @since 2021-08-12 09:32:21
 */
public class Orders implements Serializable {
    private static final long serialVersionUID = 177520119833302589L;
    /**
     * 订单id
     */
    private Integer id;
    /**
     * 订单号码
     */
    private String orderNumber;
    /**
     * 商品id
     */
    private Integer goodsId;
    /**
     * 顾客id
     */
    private Integer customerId;
    /**
     * 价格
     */
    private double price;
    /**
     * 0代表未支付，1代表已支付未发货，2代表已支付已发货
     */
    private Integer status;

    /*导入user类*/
    private User users;

    /*导入goods类*/
    private Goods goods;

    public Orders() {
    }

    public Orders(Integer id, String orderNumber, Integer goodsId, Integer customerId, double price, Integer status) {
        this.id = id;
        this.orderNumber = orderNumber;
        this.goodsId = goodsId;
        this.customerId = customerId;
        this.price = price;
        this.status = status;
    }

    public Orders(Integer id, String orderNumber, Integer goodsId, Integer customerId, double price, Integer status, User users, Goods goods) {
        this.id = id;
        this.orderNumber = orderNumber;
        this.goodsId = goodsId;
        this.customerId = customerId;
        this.price = price;
        this.status = status;
        this.users = users;
        this.goods = goods;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public User getUsers() {
        return users;
    }

    public void setUsers(User users) {
        this.users = users;
    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    @Override
    public String toString() {
        return "Orders{" +
                "id=" + id +
                ", orderNumber='" + orderNumber + '\'' +
                ", goodsId=" + goodsId +
                ", customerId=" + customerId +
                ", price=" + price +
                ", status=" + status +
                ", users=" + users +
                ", goods=" + goods +
                '}';
    }
}
